package com.oocl.euc.core.maintenance.service;

import com.oocl.euc.core.maintenance.model.SupportGroup;
import com.oocl.euc.core.maintenance.repository.SupportGroupRepository;
import com.oocl.euc.framework.base.persistence.IBaseRepository;
import com.oocl.euc.framework.base.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SupportGroupService extends BaseService<SupportGroup, Long>{

    @Autowired SupportGroupRepository supportGroupRepository;
    @Override
    protected IBaseRepository<SupportGroup, Long> getRepository() {
        return supportGroupRepository;
    }

    public SupportGroup findByGroupName(String groupName) {
        return supportGroupRepository.findByGroupName(groupName);
    }
}
